<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>券商设置</title>
    <!--layui的CSS样式-->
    <link type="text/css" rel="stylesheet" href="../lib/layuimini/lib/layui-v2.5.5/css/layui.css"/>
    <!--layui的js-->
    <script src="../lib/layuimini/lib/layui-v2.5.5/layui.js"></script>
    <!--第三方下拉表格js-->
    <script src="../lib/layuimini/js/lay-config.js"></script>
    <!--自己js的路径-->
    <script type="text/javascript" src="./js/broker.js"></script>
</head>
<body>
<!--头部工具-->
<script type="text/html" id="userToolBar">
    <div style="float:right">
        <button class="layui-btn layui-btn-sm" lay-event="add" style="background: #1E9FFF;color: white"><i
                class="layui-icon">&#xe654;</i>添加数据</button>
        <button class="layui-btn layui-btn-primary layui-btn-sm" lay-event="deleteAll" style="background: red;color: white"><i
                class="layui-icon">&#xe640;</i>批量删除</button>
    </div>
    <!--券商名称-->
    <form class="layui-form layui-col-space5">
        <div class="layui-inline layui-show-xs-block">
            <label class="layui-form-label" style="width: 110px; text-align: center">券商名称:</label>
            <div class="layui-inline layui-show-xs-block">
                <input class="layui-input" placeholder="请输入券商名称" name="brokerName" style="width: 250px" id="brokerName">
            </div>
        </div>
        <!--搜索-->
        <div class="layui-inline layui-show-xs-block">
            <button class="layui-btn layui-btn-primary" lay-event="search" lay-submit="" lay-filter="sreach" style="background: #1E9FFF; color: white"><i class="layui-icon">&#xe615;</i>搜索</button>
        </div>
    </form>
</script>
<div class="layuimini-main">
    <!--表格-->
    <table id="userTable" lay-filter="userTable">

    </table>
    <!--工具条-->
    <script type="text/html" id="barDemo" >
        <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon" style="background: #1E9FFF;color: white"></i>编辑</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del" style="background: red;color: white"><i class="layui-icon"></i>删除</button>
    </script>
</div>


<!--添加的div内容-->
<div id="addContent" style="text-align: center" hidden><!--隐藏添加div内容-->
    <form id="addform" lay-filter="addform" class="layui-form layui-col-space5" style="margin: 50px auto; display: inline-block">
        <!--券商编号-->
        <div>
            <input type="hidden" name="brokerId">
        </div>

        <!--券商名称-->
        <div class="layui-form-item" style="text-align: center">
            <label class="layui-form-label layui-bg-gray" style="text-align: center">券商名称:</label>
            <div class="layui-input-inline">
                <input type="text" name="brokerName" lay-verify="required"
                       autocomplete="off" placeholder="请输入券商名称" class="layui-input">
            </div>
        </div>

        <!--券商说明-->
        <div class="layui-form-item" style="text-align: center">
            <label class="layui-form-label layui-bg-gray" style="text-align: center">券商说明:</label>
            <div class="layui-input-inline">
                <input type="text" name="brokerInstructions" lay-verify="required"
                       autocomplete="off" placeholder="请输入券商说明" class="layui-input">
            </div>
        </div>

        <!--券商描述-->
        <div class="layui-form-item" style="text-align: center">
            <label class="layui-form-label layui-bg-gray" style="text-align: center">券商描述:</label>
            <div class="layui-input-inline">
                <textarea required placeholder="请输入券商描述" class="layui-textarea" name="brokerDesc"></textarea>
            </div>
        </div>

        <!--添加、取消-->
        <div style="text-align: center; margin-top: 45px">
            <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="addsubmit" style="background: #1E9FFF;color: white">
                <i class="layui-icon">&#x1005;</i>添加
            </button>
            <button class="layui-btn layui-btn-primary" type="button" onclick="myclose()" style="background: red;color: white">
                <i class="layui-icon">&#x1006;</i>取消
            </button>
        </div>
    </form>
</div>


<!--修改的div内容-->
<div id="editContent" style="text-align: center" hidden><!--隐藏修改div内容-->
    <form id="editform" lay-filter="editform" class="layui-form layui-col-space5" style="margin: 50px auto; display: inline-block">
        <!--券商编号-->
        <div>
            <input type="hidden" name="brokerId">
        </div>

        <!--券商名称-->
        <div class="layui-form-item" style="text-align: center">
            <label class="layui-form-label layui-bg-gray" style="text-align: center">券商名称:</label>
            <div class="layui-input-inline">
                <input type="text" name="brokerName" lay-verify="required"
                       autocomplete="off" placeholder="请输入券商名称" class="layui-input">
            </div>
        </div>

        <!--券商说明-->
        <div class="layui-form-item" style="text-align: center">
            <label class="layui-form-label layui-bg-gray" style="text-align: center">券商说明:</label>
            <div class="layui-input-inline">
                <input type="text" name="brokerInstructions" lay-verify="required"
                       autocomplete="off" placeholder="请输入券商说明" class="layui-input">
            </div>
        </div>

        <!--券商描述-->
        <div class="layui-form-item" style="text-align: center">
            <label class="layui-form-label layui-bg-gray" style="text-align: center">券商描述:</label>
            <div class="layui-input-inline">
                <textarea required placeholder="请输入券商描述" class="layui-textarea" name="brokerDesc"></textarea>
            </div>
        </div>

        <!--修改、取消-->
        <div style="text-align: center; margin-top: 45px">
            <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="editsubmit" style="background: #1E9FFF;color: white">
                <i class="layui-icon">&#x1005;</i>修改
            </button>
            <button class="layui-btn layui-btn-primary" type="button" onclick="myclose()" style="background: red;color: white">
                <i class="layui-icon">&#x1006;</i>取消
            </button>
        </div>
    </form>
</div>

</body>
</html>
